package domain.models;

import java.util.List;

import javax.swing.table.AbstractTableModel;

import controllers.DomainController;

public abstract class MyTableModel extends AbstractTableModel{

	protected String[] columnHeaders;
	protected DomainController domainController;

	public MyTableModel(DomainController domainController) {
		this.domainController = domainController;
	}

	@Override
	public int getColumnCount() {
		return columnHeaders.length;
	}

	
	@Override
	public String getColumnName(int columnIndex){
		return columnHeaders[columnIndex];
	}
	
	public void setColumnHeaders(String[] columnHeaders) {
		this.columnHeaders = columnHeaders;
		
	}

	
}
